package gao.xaiolei.dto;

import gao.xaiolei.enity.TaskAttached;
import gao.xaiolei.enity.TaskView;
import lombok.Data;

import java.util.List;

@Data
public class TaskOutDto {

    private TaskView task;

    private List<LinkOutDto> link;

    private List<TaskAttached> attached;

    private List<ReceiverDto> receivers;

    public TaskOutDto(TaskView task, List<LinkOutDto> link, List<TaskAttached> attached) {
        this.task = task;
        this.link = link;
        this.attached = attached;
    }

    public TaskOutDto(TaskView task, List<LinkOutDto> link, List<TaskAttached> attached, List<ReceiverDto> receivers) {
        this.task = task;
        this.link = link;
        this.attached = attached;
        this.receivers = receivers;
    }

    public TaskOutDto() {
    }
}
